﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Windows.Forms;

namespace AcfunUpload
{
    public static class DataSaving
    {
        public static AcfunInfo ai;
        public static string host = "http://boomfun.cn";
        public static Divided d;
        public static ProgressBar pgb;
    }
    public class AcfunInfo
    {
        public string username;
        public string password;
        public CookieContainer cc;
    }
    public class postAcInfo
    {
        public postAcInfo(int videoId, string title, string sid)
        {
            this.videoId = videoId;
            this.title = title;
            this.sid = sid;
        }
        public int videoId;
        public string title;
        public string opType="E";
        public string sid;
        public string sourceType= "zhuzhan";
        public string vst= "UPLOAD_OK";
        public string vsi= "youku";
    }
    public class Channel
    {
        public  Channel(string id, string name, SubChannel[] sub)
        {
            this.id = id;
            this.name = name;
            this.sub = sub;
        }
        public string id;
        public string name;
        public SubChannel[] sub;
    }
    public class SubChannel
    {
        public SubChannel(string id,string name)
        {
            this.id = id;
            this.name = name;
        }
        public string id;
        public string name;
    }
    public class UploadInfo {
        public UploadInfo(string fileName,string fileSize)
        {
            this.fileName = fileName;
            this.fileSize = fileSize;
        }
        public string uploadToken;
        public string uploadServerHost;
        public string vid;
        public string accessToken;
        public string sign;
        public string clientId = "908a519d032263f8";
        public string fileName;
        public string fileSize;
        public string uploadServerName;
        public string sid;
        public string acVid;
        public string partName;
    }
    public class PostAcInfo
    {
        public PostAcInfo(int videoId,string title,string sid)
        {
            this.videoId = videoId;
            this.title = title;
            this.sid = sid;
        }
        public int videoId;
        public string title;
        public string opType= "E";
        public string sid;
        public string sourceType= "zhuzhan";
        public string vst= "UPLOAD_OK";
        public string vsi= "youku";
    }
    public class VideoTime
    {
        public VideoTime(int millisecond, int second, int minute,int hour, string endTime)
        {
            this.millisecond = millisecond;
            this.second = second;
            this.minute = minute;
            this.endTime = endTime;
            this.hour = hour;
        }
        public double millisecond;
        public double second;
        public double minute;
        public double hour;
        public string startTime = "00:00:00";
        public string endTime;
    }
}
